package demo1;

public class Test {
    public static void main(String[] args) {
        MyBinaryTree tree = new MyBinaryTree();
        MyBinaryTree.TreeNode root = tree.createTree();
        tree.preOrder(root);
        System.out.println();
        tree.inOder(root);
        System.out.println();
        tree.postOrder(root);
        System.out.println(tree.size(root));
        System.out.println(tree.getLeafCount(root));
    }
}
